<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: kane <chengjin005@163.com> 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\wsapi\controller;

use cmf\controller\HomeBaseController;
use app\admin\model\CaseModel;
use think\Db;
use think\Cache;
/**
 * Class 
 * @package app\admin\controller
 */
class BaseController extends HomeBaseController
{

	/**
	 * 
	 */
	public function __construct()
	{
		parent::__construct();
		// $userid = $this->request->param('userid');
		// if(!$userid)
		// {
		// 	ajaxReturn(['status'=>2,'msg'=>'请去登陆']);
		// 	exit();
		// }
		// $time  = $this->request->param('time');
		// $token_home = $this->request->param('token');
		// $token = md5(md5($userid).$time.'@#$%%$#@'); 
		// if($token != $token_home )
		// {
		// 	ajaxReturn(['status'=>3,'msg'=>'验证失败']);
		// 	exit();
		// }
		// $r = Cache::store('redis')->get($token);
		// if($r)
		// {
		// 	ajaxReturn(['status'=>4,'msg'=>'请勿多次发送']);
		// }
		// Cache::store('redis')->set($token,1,0);


	}

}